import { BrowserRouter } from "react-router-dom";
import { createRoot } from "react-dom/client";
import { ConfigProvider, message } from "antd";
import AuthRoutes from "./router/routes";
import "./assets/font/iconfont.css";
import "./index.css";

message.config({
  duration: 2, // 2秒后自动关闭
  maxCount: 1, // 同一时间只显示一个提示
  top: 50, // 距离顶部距离
  rtl: false, // 是否从右往左显示
});

createRoot(document.getElementById("root")!).render(
  <BrowserRouter>
    <ConfigProvider>
      <AuthRoutes />
    </ConfigProvider>
  </BrowserRouter>
);
